//
//  MMCameraAndImagePickerViewController.h
//  MemeMaker
//
//  Created by dangthan on 7/30/13.
//  Copyright (c) 2013 soyo. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
#import <QuartzCore/QuartzCore.h>
#import <ImageIO/ImageIO.h>
#import <AssetsLibrary/AssetsLibrary.h>
#import "MMCapture.h"

@protocol MMCameraDelegate <NSObject>

@optional
- (void) didReceivedImage:(UIImage *)img;
@end

@interface MMCameraAndImagePickerViewController : UIViewController <UIImagePickerControllerDelegate, UINavigationControllerDelegate, MMCaptureDelegate>{
    
    __weak IBOutlet UIButton *btnTakeShot;
    __weak IBOutlet UIButton *btnAlbum;
    __weak IBOutlet UIView *viewButton;
    
    UIView              *viewMainCamera;
    
    UIView              *previewView;
    AVCaptureVideoPreviewLayer *previewLayer;
    CALayer             *focusBox;
    CALayer             *exposeBox;
    
    UIImagePickerController *imagePickerController;
//    GPBarButtonCustom       *barChangeCamera;
    MMCapture        *captureManager;
    
    BOOL                    processingTakePhoto;
    
    UIBarButtonItem *btnChangeCamera;
}

@property (nonatomic, assign) id<MMCameraDelegate> delegate;


@end
